import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import installElementPlus from './plugins/element'
// import registerGlobComp from './plugins/ant-design'
// import lazyPlugin from 'vue3-lazy'
import Request from './network/request'
import api from './network/apis'
import store from '@/store/store'
import './assets/css/base.less'
import './assets/css/font-icon/iconfont.css'


const app = createApp(App)
  // Vue.prototype.$message = message;
// app.component('svg-icon', SvgIcon)
installElementPlus(app)

// registerGlobComp(app)
Request.init()
//将api接口挂载全局
app.config.globalProperties.$api = api
app.use(store)
app.use(router).mount('#app')